//
//  UIImage+YKOriImage.m
//  LuckyDog
//
//  Created by yk on 16/3/27.
//  Copyright © 2016年 yk. All rights reserved.
//

#import "UIImage+YKOriImage.h"

@implementation UIImage (YKOriImage)

+(UIImage *)imageOriginalWithNamed:(NSString *)imageNmae
{
    //禁止图片自动渲染
    UIImage *image = [UIImage imageNamed:imageNmae];
    //保留原始图片
    UIImage *oriImage = [image imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    
    return oriImage;
}

@end
